package com.yxuan.springboot.mapper;

import com.yxuan.springboot.model.UserVip;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zchao
 * UserVipMapper层
 * @date 2023-05-09 08:56:34
 */
@Mapper
public interface UserVipMapper extends BaseMapper<UserVip> {


    List<UserVip> findAllVips() throws Exception;

    //查询各个等级的会员集合
    List<UserVip> findVipsBycondition(@Param("vipRank") String vipRank) throws Exception;

    //重置每个等级会员用户的修改个人信息次数
    Integer updVipUpdInfoNum(@Param("userId") Integer userId, @Param("infoUpdTimes") String infoUpdTimes) throws Exception;

    List<UserVip> findAllPoors() throws Exception;


}
